package com.thread.exe;

import java.util.Vector;

public class BetterVector<E> extends Vector<E>{
	private static final long serialVersionUID = -7360843875655912768L;

	public synchronized boolean putIfAbsent(E x) {
		boolean absent = !contains(x);
		if(absent)
			add(x);
		return absent;
	}
}
